home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 022 / lemacs / emacs.tut < prev    next >
Text File  |  1995-03-17  |  27KB  |  637 lines

  1. You are looking at the MICRO-EMACS tutorial.  Comments on this document
  2. may be refered to Dana Hoggatt or Dan Lawrance.
  3.  
  4. EMACS commands generally involve the CONTROL key (sometimes labelled CTRL or 
  5. CTL) or the META key (generally labelled ESCAPE).  Rather than write out META 
  6. or CONTROL each time we want you to prefix a character, we'll use the following
  7. abbreviations:
  8.  
  9.    ^<chr>   means hold the CONTROL key while typing the character <chr>
  10.             Thus, ^F would be: hold the CONTROL key and type F.
  11.  
  12.    ESC-<chr>  means type the ESCAPE key and release it, then type the 
  13.               character <chr>.  The <chr> can be upper or lower case 
  14.               and it will have the same meaning.
  15.  
  16. Important note: if you must exit at some point, type ^X ^C.  
  17.  
  18. This tutorial attempts to help you "learn by doing".  The characters ">>" 
  19. at the left margin of your screen indicate directions for you to try using 
  20. a command.  For instance:
  21.  
  22. >>  Now type ^V (View next screen) to move to the next screen.
  23.     (go ahead, do it by depressing the control key and V together).
  24.  
  25. From now on, you'll be expected to type ^V whenever you finish reading the 
  26. current screen.
  27.  
  28. Note that there is an overlap when going from screen to screen; this
  29. provides some continuity when moving through the file.
  30.  
  31. The first thing that you need to know is how to move around from place to 
  32. place in the file.  You already know how to move forward a screen, with ^V.  
  33. To move backwards a screen, type ^Z. (depress the CTRL key and type Z).
  34.  
  35. >>  Try typing ^Z and then ^V to move back and forth a few times.
  36.  
  37.  
  38. SUMMARY
  39. -------
  40.  
  41. The following commands are useful for viewing screenfuls:
  42.  
  43.      ^V      Move forward one screenful
  44.      ^Z      Move backward one screenful
  45.      <ESC>^L Clear screen and redisplay everything
  46.              putting the text near the cursor at the center.
  47.  
  48. >> find the cursor and remember what text is near it.
  49.    Then type a <ESC>^L.
  50.    Find the cursor again and see what text is near it now.
  51.  
  52.  
  53. BASIC CURSOR CONTROL
  54. --------------------
  55.  
  56. Getting from screenful to screenful is useful, but how do you reposition 
  57. yourself within a given screen to a specific place?  There are several ways 
  58. you can do this.  One way (not the best, but the most basic) is to use the 
  59. commands previous, backward, forward and next.  As you can imagine these 
  60. commands (which are given to EMACS as ^P, ^B, ^F, and ^N  respectively) move 
  61. the cursor from where it currently is to a new place in the given direction.  
  62. Here, in a more graphical form are the commands:
  63.  
  64.                           Previous line, ^P
  65.                                   :
  66.                                   :
  67.    Backward, ^B .... Current cursor position .... Forward, ^F
  68.                                   :
  69.                                   :
  70.                           Next line, ^N
  71.  
  72. You'll probably find it easy to think of these by letter.  P for
  73. previous, N for next, B for backward and F for forward.  These are
  74. the basic cursor positioning commands and you'll be using them ALL
  75. the time so it would be of great benefit if you learn them now.
  76.  
  77. >> Do a few ^N's to bring the cursor down to this line.
  78.  
  79. >> Move into the line with ^F's and then up with several ^P's.
  80.    See what ^P does when the cursor is in the middle of the line.
  81.  
  82. Lines are separated by a single Linefeed character, which is what
  83. Unix calls a Newline.
  84.  
  85. >> Try to ^B at the beginning of a line.  Do a few more ^B's.
  86.    Then do ^F's back to the end of the line and beyond.
  87.  
  88. When you go off the top or bottom of the screen, the text beyond
  89. the edge is shifted onto the screen so that your instructions can
  90. be carried out while keeping the cursor on the screen.
  91.  
  92. >> Try to move the cursor off the bottom of the screen with ^N and
  93.    see what happens.
  94.  
  95. If moving by characters is too slow, you can move by words.  ESC-F
  96. (Meta-F) moves forward a word and ESC-B moves back a word.
  97.  
  98. >> Type a few ESC-F's and ESC-B's.  Intersperse them with ^F's and ^B's.
  99.  
  100. Notice the parallel between ^F and ^B on the one hand, and ESC-F and ESC-B on 
  101. the other hand.  Very often Meta characters are used for operations related 
  102. to English text whereas Control characters operate on the basic textual units 
  103. that are independent of what you are editing (characters, lines, etc).  There 
  104. is a similar parallel between lines and sentences: ^A and ^E move to the 
  105. beginning or end of a line. and ESC-A and ESC-E move to the beginning or end 
  106. of a sentence.
  107.  
  108. ###  Note:  ESC-A and ESC-E are not implimented yet (DLH - 1/22/86)  ###
  109.  
  110. >> Try a couple of ^A's, and then a couple of ^E's.
  111.    Try a couple of ESC-A's, and then a couple of ESC-E's.
  112.  
  113. See how repeated ^A's do nothing, but repeated ESC-A's
  114. keep moving farther.  Do you think that this is right?
  115.  
  116. Two other simple cursor motion commands are ESC-< (Meta Less-than),
  117. which moves to the beginning of the file, and ESC-> (Meta Greater-than),
  118. which moves to the end of the file.  You probably don't need to try
  119. them, since finding this spot again will be boring.  If you need the
  120. shift key to type a "<", then you must also use the shift key to type
  121. ESC-<.  Otherwise, you would be typing ESC-, .
  122.  
  123. The location of the cursor within the text is also called "point".  To 
  124. paraphrase, the cursor shows on the screen where point is located in the text.
  125.  
  126. Here is a summary of simple moving operations including
  127. the word and sentence moving commands:
  128.  
  129.      ^F        Move forward a character
  130.      ^B        Move backward a character
  131.  
  132.      ESC-F     Move forward a word
  133.      ESC-B     Move backward a word
  134.  
  135.      ^N        Move to next line
  136.      ^P        Move to previous line
  137.  
  138.      ESC-N     Move to next paragraph
  139.      ESC-P     Move to previous paragraph 
  140.  
  141.      ^A        Move to beginning of line
  142.      ^E        Move to end of line
  143.  
  144.      ESC-A     Move back to beginning of sentence  (not functional)
  145.      ESC-E     Move forward to end of sentence     (not functional)
  146.  
  147.      ESC-<     Go to beginning of file
  148.      ESC->     Go to end of file
  149.  
  150. >> Try all of these commands now a few times for practice.
  151.    Since the last two will take you away from this screen,
  152.    you can come back here with ^Z's and ^V's.  These are
  153.    the most often used commands.
  154.  
  155. Like all other commands in EMACS, these commands can be given
  156. arguments which cause them to be executed repeatedly.  The way you
  157. give a command a repeat count is by typing META and then the digits
  158. before you type the command.  (Remember META is ususally called ESCAPE)
  159.  
  160. For instance, META 8 ^F moves forward eight characters.
  161.  
  162. >> Try giving a suitable argument to ^N or ^P to come as close
  163.    as you can to this line in one jump.
  164.  
  165. This also applies to the screen moving commands, ^V and ^Z.  When
  166. given an argument, they scroll the screen up or down by that many
  167. screenfuls.  As a special case, typing just ^U is equivalent to ESC-4.
  168.  
  169. >> Try typing ESC-3 ^V now.
  170.  
  171. If you would like to scroll it down, you can give an argument to ^Z.
  172.  
  173.  
  174. QUITTING FROM COMMANDS
  175. ----------------------
  176.  
  177. The character in EMACS used to quit out of all commands which request
  178. input is ^G.  For example, you can use ^G to discard a numeric argument
  179. or the beginning of a command that you don't want to finish.
  180.  
  181. >> Type ESC-100 to make a numeric arg of 100, then type ^G.
  182.    Now type ^F.  How many characters does it move?
  183.    If you have typed an <ESC> by mistake, you can get rid of it
  184.    with a ^G.
  185.  
  186.  
  187. IBM CURSOR KEYS
  188. ---------------
  189.  
  190. On the IBM-PC version, the cursor keypad has been bound to some of the
  191. more useful screen movement commands. The mappings are as follows:
  192.  
  193.      Cursor-Right    ^F        Move forward a character
  194.      Cursor-Left     ^B        Move backward a character
  195.  
  196.      ^Cursor-Right   ESC-F     Move forward a word
  197.      ^Cursor-Left    ESC-B     Move backward a word
  198.  
  199.      Cursor-Down     ^N        Move to next line
  200.      Cursor-UP       ^P        Move to previous line
  201.  
  202.      Pg-Dn           ^V        Move to next screen
  203.      Pg-Up           ^Z        Move to previous screen
  204.  
  205.      Home            ESC-<     Go to beginning of file
  206.      End             ESC->     Go to end of file
  207.  
  208.      Insert          ^O        Open up a new line
  209.      Delete          ^K        Kill to end of line
  210.  
  211. Usage of the ^O and ^K commands is described later in the tutorial. A
  212. map of the key layout looks something like this:
  213.  
  214.               -------------------------------------------------
  215.               | 7             | 8             | 9             |
  216.               | Home          | ^             | Pg Up         |
  217.               |               | |             |               |
  218.               |     ESC-<     |      ^P       |     ^Z        |
  219.               -------------------------------------------------
  220.               | 4             | 5             | 6             |
  221.               | <--           |               | -->           |
  222.               |               |               |               |
  223.               |      ^B       |               |      ^F       |
  224.               -------------------------------------------------
  225.               | 1             | 2             | 3             |
  226.               | End           | |             | Pg Dn         |
  227.               |               | v             |               |
  228.               |     ESC->     |      ^N       |      ^V       |
  229.   -------------------------------------------------------------
  230.   | 0                         | .                             |
  231.   | Insert                    | Delete                        |
  232.   |                           |                               |
  233.   |             ^O            |             ^K                |
  234.   -------------------------------------------------------------
  235.  
  236. >> if you have an IBM-PC, practice using the cursor keypad.
  237.  
  238.  
  239.  
  240. ERRORS
  241. ------
  242.  
  243. Sometimes you may do something which EMACS doesn't allow. If it is
  244. something simple, such as typing a control key sequence which is not
  245. associated with any command, EMACS will just beep at you. Otherwise,
  246. EMACS will also display an informative error message at the bottom of
  247. the screen.
  248.  
  249. Some versions of EMACS do not have all the features described in this
  250. tutorial implemented yet.  If you come across such an unimplemented
  251. feature, you may get an error message when you try to use it.  Just
  252. type a space and proceed on to the next section of the tutorial.
  253.  
  254.  
  255. INSERTING AND DELETING
  256. ----------------------
  257.  
  258. If you want to type text, just do it.  Characters which you can see, such 
  259. as A, 7, *, etc. are taken by EMACS as text and are immediately inserted.  
  260. Type <Return> (the carriage-return key) to insert a line separator.
  261.  
  262. You can delete the last character you typed by typing either <Delete> or ^H.  
  263. On some keyboards, there is a dedicated key for creating a ^H.  If so, it is 
  264. usually labeled as either "Backspace" or "<--".  <Delete> is a key on the 
  265. keyboard, which may be labeled "Rubout" instead of "Delete" on some terminals.
  266. More generally, <Delete> deletes the character immediately before the current 
  267. cursor position.
  268.  
  269. >> Do this now, type a few characters and then delete them by typing
  270.    <Delete> a few times.  Don't worry about this file being changed;
  271.    you won't affect the master tutorial.  This is just a copy of it.
  272.  
  273. >> Now start typing text until you reach the right margin, and keep
  274.    typing.  When a line of text gets too big for one line on the
  275.    screen, the line of text is "continued" off the edge of the screen
  276.    The dollar sign at the right margin indicates a line which has
  277.    been continued.  EMACS scrolls the line over so you can see what you 
  278.    are editing.  The '$' at the left or right edge of the screen indicates 
  279.    that the current line extends off in that direction.  
  280.  
  281. >> The following line actually goes off the edge.  Trying typing enough ^F's
  282.    so that you move off the right hand end of this line.  This is a long line of text.  Note the "$"s at each edge.  Keep typing ^F's and watch where EMACS decides to scroll the line.  Now, type ^B's until EMACS decides to scroll the line again.
  283.  
  284. This is one of those gizmos which is easier to understand by playing with it 
  285. than by reading about it.
  286.  
  287. >> Use ^D's or <Delete>s to delete the text until the text line fits on 
  288.    one screen line again.  The continuation "$" will go away.
  289.  
  290. >> Move the cursor to the beginning of a line and type <Delete>.  This
  291.    deletes the line separator before the line and merges the line onto
  292.    the previous line.  The resulting line may be too long to fit, in
  293.    which case it has a continuation indication.
  294.  
  295. >> Type <Return> to insert the separator again.
  296.  
  297. Internally, EMACS will allow you to have lines of nearly any length, limited 
  298. only by the amount of memory available.  Externally, however, EMACS can only 
  299. read or write lines, to or from a file, which are less than or equal to 255 
  300. characters.
  301.  
  302. Remember that most EMACS commands can be given a repeat count;  Note
  303. that this includes characters which insert themselves.
  304.  
  305. >>  Try that now -- type META 8 * and see what happens.
  306.  
  307. If you want to create a blank line in between two lines, move to the
  308. second of the two lines and type ^O.
  309.  
  310. >>  Try moving to a line and typing ^O now.
  311.  
  312. You've now learned the most basic way of typing something in
  313. EMACS and correcting errors.  You can delete by words or lines
  314. as well.  Here is a summary of the delete operations:
  315.  
  316.      <Delete>      delete the character just before the cursor
  317.      ^H            delete the character just before the cursor
  318.      ^D            delete the next character after the cursor
  319.  
  320.      ESC-<Delete>  kill the word immediately before the cursor
  321.      ESC-^H        kill the word immediately before the cursor
  322.      ESC-D         kill the next word after the cursor
  323.  
  324.      ^K            kill from the cursor position to end of line
  325.  
  326. Notice that <Delete> and ^D vs ESC-<Delete> and ESC-D extend the parallel
  327. started by ^F and ESC-F (well, <Delete> isn't really a control
  328. character, but let's not worry about that).
  329.  
  330. Now suppose you kill something, and then you decide that you want to get 
  331. it back?  Well, whenever you kill something bigger than a character, EMACS 
  332. saves it for you.  To yank it back, use ^Y.  Note that you don't have to 
  333. be in the same place to do ^Y; This is a good way to move text around.  
  334. Also note that the difference between "Killing" and "Deleting" something 
  335. is that "Killed" things can be yanked back, and "Deleted" things cannot.  
  336. Generally, the commands that can destroy a lot of text save it, while the 
  337. ones that attack only one character, or nothing but blank lines and spaces, 
  338. do not save.
  339.  
  340. For instance, type ^N a couple times to postion the cursor
  341. at some line on this screen.
  342.  
  343. >> Do this now, move the cursor and kill that line with ^K.
  344.  
  345. Note that a single ^K kills the contents of the line, and a second
  346. ^K kills the line itself, and make all the other lines move up.  If
  347. you give ^K a repeat count, it kills that many lines AND their contents.
  348.  
  349. The text that has just disappeared is saved so that you can
  350. retrieve it.  To retrieve the last killed text and put it where
  351. the cursor currently is, type ^Y.
  352.  
  353. >> Try it; type ^Y to yank the text back.
  354.  
  355. Think of ^Y as if you were yanking something back that someone took away 
  356. from you.  Notice that if you do several ^K's in a row the text that is 
  357. killed is all saved together so that one ^Y will yank all of the lines.
  358.  
  359. >> Do this now, type ^K several times.
  360.  
  361. Now to retrieve that killed text:
  362.  
  363. >> Type ^Y.  Then move the cursor down a few lines and type ^Y
  364.    again.  You now see how to copy some text.
  365.  
  366. What do you do if you have some text you want to yank back, and then
  367. you kill something else?  ^Y would yank the more recent kill.
  368.  
  369. >> Kill a line, move around, kill another line.
  370.    Then do ^Y to get back the second killed line.
  371.  
  372.  
  373. FILES
  374. -----
  375.  
  376. In order to make the text you edit permanent, you must put it in a file.
  377. Otherwise, it will go away when you leave EMACS.  While you are editing a
  378. file in EMACS, your changes are actually being made to a private
  379. "scratch" copy of the file.  However, the changes still don't become
  380. permanent until you "save" the file.  This is so you can have control to
  381. avoid leaving a half-changed file around when you don't want to.
  382.  
  383. If you look near the botton of the screen you will see a line that
  384. looks like this:
  385.  
  386.     =* MicroEMACS 3.1 (NORMAL) == emacs.tut == File: emacs.tut ==========
  387.                                                ---------------
  388.  
  389. Note that EMACS indicates the name of the file you are currently editing.
  390. This is the name of your own temporary copy of the text of the EMACS
  391. tutorial; the file you are now editing.  Whatever file you edit, that
  392. file's name will appear in that precise spot.
  393.  
  394. The commands for finding and saving files are unlike the other commands you
  395. have learned in that they consist of two characters. They both start with the
  396. character Control-X.  There is a whole series of commands that start with
  397. Control-X; many of them have to do with files, buffers, and related things,
  398. and all of them consist of Control-X followed by some other character.  As
  399. with ESC, the character is interpreted the same regardless of case.
  400.  
  401. Another thing about the command for finding a file is that you have to say
  402. what file name you want.  We say the command "reads an argument from the
  403. terminal" (in this case, the argument is the name of the file).  After you
  404. type the command
  405.  
  406.      ^X ^F   Find a file
  407.  
  408. EMACS will ask you for the file name.  You should end the name with
  409. the Return key.  After this command, you will see the contents of the
  410. file in your EMACS.  You can edit the contents.  When you wish to make
  411. the changes permanent, issue the command
  412.  
  413.      ^X ^S   Save the file
  414.  
  415. A new version of the file will be created.  When the operation is
  416. finished, EMACS prints the name and number of lines saved.
  417.  
  418. If you forget to save and edit a different file and then decide to quit,
  419. EMACS will remind you that you made changes that have not been save and
  420. then ask you whether you really want to quit.  (If you don't save them,
  421. they will be thrown away.  That might be what you want!)  You should
  422. answer with a "N" to save them or a "Y" to throw the changes away.
  423.  
  424. To make a new file, just edit it "as if" it already existed.  Then start 
  425. typing in the text.  When you ask to "save" the file, EMACS will really 
  426. create the file with the text that you have inserted.  From then on, you 
  427. can consider yourself to be editing an already existing file.
  428.  
  429. It is not easy for you to try out editing a file and continue with the 
  430. tutorial.  But you can always come back into the tutorial by starting it 
  431. over and skipping forward.  So, when you feel ready, you should try editing 
  432. a file named "FOO", putting some text in it, and saving it; then exit from 
  433. EMACS and look at the file to be sure that it worked.
  434.  
  435.  
  436. EXTENDING THE COMMAND SET
  437. -------------------------
  438.  
  439. ###   The mechanisms for extending the command set and setting   ###
  440. ###   the key bindings has not been installed yet.  Skip forward ###
  441. ###   to the next section (TEXT REPLACEMENT).    DLH  (1/22/86)  ###
  442.  
  443. There are many, many more EMACS commands than could possibly be put
  444. on all the control and meta characters.  EMACS gets around this with
  445. the X (eXtend) command.  This comes in two flavors:
  446.  
  447.      ^X       Character eXtend.  Followed by one character.
  448.      ESC-X    Named command eXtend.  Followed by a long name.
  449.  
  450. These are commands that are generally useful but used less than the commands 
  451. you have already learned about.  You have already seen two of them: the file 
  452. commands ^X ^F to Find and ^X ^S to Save.  Another example is the command to 
  453. tell EMACS that you'd like to stop editing.  The command to do this is ^X ^C.
  454.  
  455. There are many ^X commands.  The ones you need immediately are:
  456.  
  457.      ^X ^F     Find file.
  458.      ^X ^S     Save file.
  459.      ^X ^C     Quit EMACS.  This does not save your files auto-
  460.                  matically, though if your files have been modi-
  461.                  fied, EMACS asks if you really want to quit.  The
  462.                  standard way to save and exit is ^X ^S ^X ^C.
  463.  
  464. Named eXtended commands are commands which are used even less
  465. frequently, or commands which are used only in certain modes. These
  466. commands are usually called "functions". An example is the function
  467. "apropos", which prompts for a keyword and then gives the names of all
  468. the functions that apropos for that keyword. When you type ESC-X, EMACS
  469. prompts you at the bottom of the screen with ":" and you should type the
  470. name of the function you wish to call; in this case, "apropos". Just
  471. type "apr<Space>" and EMACS will complete the name. EMACS will ask you
  472. for a keyword or phrase and you type the string that you want ask about.
  473.  
  474. >> Try typing ESC-X, followed by "apropos" or "apr" and then Return.
  475.    Then try typing "file" followed by a Return.
  476.  
  477.  
  478. TEXT REPLACEMENT
  479. ---- -----------
  480.  
  481. >> Move the cursor to the blank line two lines below this one.
  482.    Then type ESC-r changed<Escape>altered<Escape>.
  483.  
  484.    Notice how this line has changed: you've replaced
  485.    the word c-h-a-n-g-e-d with "altered" wherever it occurs
  486.    after the cursor.
  487.  
  488. The more customary command for replacing strings is the interactive
  489. command query-replace-search, which has several options. In essence, it
  490. shows each occurance of the first string and asks you if you want to
  491. replace it or not. You can also choose to edit around the string, or go
  492. on and replace all occurances without asking further. It is described in
  493. detail in the EMACS manual.  Also, typing a '?' when it asks you if you
  494. wish to replace will list out the various options.
  495.  
  496.  
  497. MODE LINE
  498. ---------
  499.  
  500. The bottom line of the screen is known as the communications line.  This
  501. is where EMACS interactively communicates with you.  You have already
  502. seen how emacs prompts you for information (like when searching).  EMACS
  503. can also report things to you as well.
  504.  
  505. >> Type ^X = and see what you get in the communications line.
  506.  
  507. The line immediately above the communications line is called the MODE
  508. LINE. The mode line says something like
  509.  
  510.     =* MicroEMACS 3.1 (NORMAL) == emacs.tut == File: emacs.tut ==========
  511.  
  512. This is a very useful "information" line.
  513.  
  514. The star means that you have made changes to the text.  Right after
  515. you visit or save a file, there is no star.
  516.  
  517. The buffername is the name EMACS gave to the buffer, and it is usually
  518. related to the filename. You already know what the filename means -- it
  519. is the file you have edited.
  520.  
  521. The part of the mode line inside the parentheses is to tell you what
  522. modes you are in. The default mode is NORMAL which is what you are in
  523. now. It is an example of a "major mode". There are several major modes
  524. in EMACS for editing different languages and text, such as C mode, Text
  525. mode, etc. At any time one and only one major mode is active, and its
  526. name can always be found in the mode line just where "NORMAL" is now.
  527.  
  528. Each major mode makes a few commands behave differently. For example,
  529. there are commands for creating comments in a program, and since each
  530. programming language has a different idea of what a should look like,
  531. each major mode has to insert comments differently. Each major mode is
  532. controlled by a EMACS variable which can be manipulated and queried with
  533. the "set" and "print" extended commands.
  534.  
  535. Major modes are called major because there are also minor modes. They
  536. are called minor because they aren't alternatives to the major modes,
  537. just minor modifications of them. Each minor mode can be turned on or
  538. off by itself, regardless of what major mode you are in, and regardless
  539. of the other minor modes. So you can use no minor modes, or one minor
  540. mode, or any combination of several minor modes.
  541.  
  542. One minor mode which is very useful, especially for editing English
  543. text, is WRAP mode. When this mode is on, EMACS breaks the line in
  544. between words automatically whenever the line gets too long. You can
  545. turn this mode on by doing ^X M wrap <return>. When the mode is on, you
  546. can turn it off by doing ^X ^M wrap <Return>.
  547.  
  548. >> Type "^X ^M wrap <Return>" now.  Then insert a line of "asdf " over 
  549.    again until you see it divide into two lines.  You must put in spaces 
  550.    between them because Auto Fill breaks lines only at spaces.  Note that 
  551.    "WRAP" appears in the mode line, indicating that you are in WRAP mode.
  552.  
  553. The margin is usually set at 72 characters, but it can be shanged.  
  554. Simply type ESC nn ^X F, where "nn" is the column number for the right 
  555. hand margin.  
  556.  
  557.  
  558. SEARCHING
  559. ---------
  560.  
  561. EMACS can do searches for strings (these are groups of contiguous
  562. characters or words) either forward through the file or backward
  563. through it.  
  564.  
  565. >> Now type ^S to start a search.  Type the word 'cursor', then ESCAPE.
  566.  
  567. >> Type ^S ESCAPE to find the next occurrence of "cursor".
  568.  
  569. The ^S starts a search that looks for any occurrence of the search
  570. string AFTER the current cursor position.  But what if you want to
  571. search for something earlier in the text?  To do this one should
  572. type ^R for Reverse search.  Everything that applies to ^S applies
  573. to ^R except that the direction of the search is reversed.
  574.  
  575.  
  576. GETTING MORE HELP
  577. -----------------
  578.  
  579. In this tutorial we have tried to supply just enough information to
  580. get you started using EMACS.  There is so much available in EMACS that
  581. it would be impossible to explain it all here.  However, you may want
  582. to learn more about EMACS since it has numerous desirable features
  583. that you don't know about yet.
  584.  
  585. ###   The on-line help features have not been implimented yet.  DLH   ###
  586.  
  587. The most basic HELP feature is the describe-key function which is
  588. available by typing ^X ? and then a command character. EMACS prints one
  589. line line on the bottom of the screen tell what function is bound to
  590. that key.
  591.  
  592. The describe-command function ESC-? will prompt for the name of a function
  593. and print out the section from the manual about that command. When you
  594. are finished reading it, type a Space or a ^G (quit) to bring your text
  595. back on the screen.
  596.  
  597. >> Type ^X ? Control-P.  The message at the bottom of the screen should
  598.    be something like "^P is bound to previous-line".
  599.  
  600. Multi-character commands such as ^X ^Z and <ESC>V are also allowed
  601. after ^X ?.
  602.  
  603. Now lets get more information about the previous-line command.
  604.  
  605. >> Type ESC-? previous-line.  When you are finished reading the
  606.    output, type a Space.
  607.  
  608. The "name of the function" is important for people who are customizing
  609. EMACS.  It is what appears in the EMACS CHART as the documentation for
  610. the command character.
  611.  
  612.  
  613. CONCLUSION
  614. ----------
  615.  
  616. Remember, to exit use ^X ^C.
  617.  
  618. This tutorial is meant to be understandable to all new users, so if
  619. you found something unclear, don't sit and blame yourself - complain!
  620.  
  621. You'll probably find that if you use EMACS for a few days you won't
  622. be able to give it up.  Initially it may give you trouble.  But remember
  623. that this is the case with any editor, especially one that can do many,
  624. many things.  And EMACS can do practically everything.
  625.  
  626.  
  627. Acknowledgements
  628. ----------------
  629.  
  630. This is a modified version of the "JOVE Tutorial" by Jonathan Payne 
  631. (19 January 86). That document was in turn a modified version of the
  632. tutorial "Teach-Emacs" from MIT as modified by Steve Zimmerman at
  633. CCA-UNIX (31 October 85).
  634.  
  635. This document was last updated on 2-7-86 by Dana Hoggatt.
  636.  
  637.